//
//  UIScreen+XBAdd.h
//  XBCategoriesDemo
//
//  Created by kevin007 on 2021/4/12.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIScreen (XBAdd)
/** UIScreen width*/
@property (nonatomic, assign, readonly, class) CGFloat width;
/** UIScreen height*/
@property (nonatomic, assign, readonly, class) CGFloat height;
/** UIScreen size*/
@property (nonatomic, assign, readonly, class) CGSize  size;
/** 状态栏高度*/
@property (nonatomic, assign, readonly, class) CGFloat statusBarHeight;
/** 导航栏高度*/
@property (nonatomic, assign, readonly, class) CGFloat navigationBarHeight;
/** 底部tabbar高度*/
@property (nonatomic, assign, readonly, class) CGFloat tabbarHeight;
/** 顶部安全距离*/
@property (nonatomic, assign, readonly, class) CGFloat topSafeAreaHeight;
/** 底部安全距离*/
@property (nonatomic, assign, readonly, class) CGFloat bottomSafeAreaHeight;
/** UIScreen scaleRate, depend on 375*/
@property (nonatomic, assign, readonly, class) CGFloat scaleRate;
/** 是否是iPhone X 系列*/
@property (nonatomic, assign, readonly, class) BOOL isiPhoneXSeries;
@end

NS_ASSUME_NONNULL_END
